//
//  detail.m
//  detail
//
//  Created by lanou3g on 15/7/17.
//  Copyright (c) 2015年 NB三人行. All rights reserved.
//

#import "detail.h"

@implementation Detail


//实现计算字符串高度的方法
- (CGFloat)stringHeight:(NSString *)str {
    //计算字符的属性
    NSDictionary *dic = @{NSFontAttributeName : [UIFont systemFontOfSize:15]};
    //计算字符串的区域
    CGRect rect = [str boundingRectWithSize:CGSizeMake(300,1000) options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
    return rect.size.height;
}





@end
